package com.sparrow.constant;

/**
 * 文件（附件相关配置）
 * 
 * @author zhanglizhi
 * @date 2012-1-14 下午03:24:08
 * @version 1.0
 */
public class FILE {
	/**
	 * 附件表的主键字段名
	 */
	public static final String UUID = "fileUUID";
	/**
	 * 正确文件类型的配置前缀字符.使用举例:rightFileType(UserHead) UserHead为pathKey
	 */
	public static final String RIGHT_TYPE = "rightFileType";
	/**
	 * 错误文件类型的错误提示信息前缀. 使用举例:errorType|文件类型不正确
	 */
	public static final String ERROR_TYPE = "errorType";
	/**
	 * 是否允许文件下载的策略编码
	 */
	public static final String DOWNLOAND_POLICY_CODE = "downloadPolicyCode";

	/**
	 * 图片格式
	 */
	public static final String IMAGE_EXTENSION = "imgageExtension";
	/**
	 * 静态化错误标记
	 */
	public static final String ERROR_STATIC_HTML = "<!--server error -->";

	public class SIZE {
		public static final String ATTACH = "";
		public static final String ORIGIN = "origin";
		public static final String BIG = "big";
		public static final String MIDDLE = "middle";
		public static final String SMALL = "small";
	}

	public class PATH {
		public static final String IMG_URL = "imgUrl";
		public static final String IMG_UNC = "imgUnc";
		public static final String FILE_UNC = "fileUnc";
	}
}
